package com.agileai.pm.module.proc.service;

import java.util.List;

import com.agileai.domain.DataBox;
import com.agileai.domain.DataParam;
import com.agileai.domain.DataRow;
import com.agileai.hotweb.bizmoduler.core.StandardServiceImpl;

public class ProcProjectTrackManageImpl
        extends StandardServiceImpl
        implements com.agileai.pm.cxmodule.ProcProjectTrackManage {
    public ProcProjectTrackManageImpl() {
        super();
    }

	@Override
	public List<DataRow> findprocTracks(String pptId) {
		List<DataRow>list=this.daoHelper.queryRecords("ProcProjectTrackManage.findprocTracks", new DataParam("pptId",pptId));
		return list;
	}

	@Override
	public void updateWeekInfo(DataParam param) {
		String statementId = "ProcProjectTrackManage"+"."+"updateWeekInfo";
		this.daoHelper.updateRecord(statementId, param);
	}

	@Override
	public void updateTrackInfo(DataParam trackParam) {
		String statementId = "ProcProjectTrackManage"+"."+"updateTrackInfo";
		this.daoHelper.updateRecord(statementId, trackParam);
	}

	@Override
	public void updatePptstate(DataParam pptStaeParam) {
		String statementId = "ProcProjectTrackManage"+"."+"updatePptstate";
		this.daoHelper.updateRecord(statementId, pptStaeParam);
	}

	@Override
	public DataRow getSysUserInfo(DataParam dataParam) {
		String statementId = "ProcProjectTrackManage"+"."+"getSysUserInfo";
		DataRow result = this.daoHelper.getRecord(statementId, dataParam);
		return result;
	}

	@Override
	public void updateUserTrankNum(DataParam userParam) {
		String statementId = "ProcProjectTrackManage"+"."+"updateUserTrankNum";
		this.daoHelper.updateRecord(statementId, userParam);
	}

	@Override
	public List<DataRow> findMobileTrackRecords(DataParam param) {
		String statementId = sqlNameSpace+"."+"findMobileTrackRecords";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}

	@Override
	public DataBox findProjectTrack8WeeklyInfos(String indexFieldName,String startDate, String endTime) {
		String statementId = sqlNameSpace+"."+"findMobileTrackRecords";
		DataBox result = this.daoHelper.queryDataBox(indexFieldName, statementId, new DataParam());
		return result;
	}
}
